import { createRouter, createWebHashHistory, RouteRecordRaw } from "vue-router";
import HomeView from "../views/HomeView.vue";

const routes: Array<RouteRecordRaw> = [
  {
    path: "/",
    // name: "home",
    // component: HomeView,
    redirect: '/index'
  },
  {
    path: "/index",
    component: () => import("@/views/index/index.vue"),
  },
  {
    path: "/opaque-earth",
    component: () => import("@/views/ball/opaque-earth.vue"),
  },
  {
    path: "/ball",
    component: () => import("@/views/ball/index.vue"),
  },
  {
    path: "/earth",
    component: () => import("@/views/earth/index.vue"),
  },
  {
    path: "/earth-map",
    component: () => import("@/views/3d/index.vue"),
  },
  {
    path: "/pic",
    component: () => import("@/views/pic/index.vue"),
  },
];

const router = createRouter({
  history: createWebHashHistory(),
  routes,
});

export default router;
